<!--  Creazione: 2011-12-20
      Ultima modifica: 2013-03-13
      Autore:Simone Zennaro
      Versione: 1.3
      Copyright (c) 2011-2013, Università degli Studi di Padova, Italia
-->

<%@ page contentType="text/html"%>

<%@ include file="/jsp/header.jsp"%>

<tr>
	<td style="float:left;">
		<%@ include file="/html/left_menu.html"%>
	</td>

	<!-- Corpo principale -->
	<td width="727" style="float:right;">
		<h1>Registrazione Utente</h1>
		<form id="registration-form" method="post" action="cliente_servlet">
			<input type="hidden" name="action" value="create_cliente"/>
			<div id="create_cliente_main">
				<div class="box_dati">
					<div class="top">
						<p><span>Dati Anagrafici</span></p>
	            		
	        		</div>
					<p><label><input type="radio"  name="isPrivato" value="true" id="privato"> privato</label>
		            <label><input type="radio"  name="isPrivato" value="false" id="azienda"> azienda</label></p>
	        		<table>
	        			<tr>
	        				<td width="175"><label for="cognome">Cognome/Rag.sociale:</label></td>
	        				<td width="175"><input type="textbox" name="cognome"  size="20"/></td>
	        				<td width="175"><label for="nome">Nome:</label></td>
	        				<td width="175"><input type="textbox" name="nome"  size="20"/></td>
	        			</tr>
	        			<tr>
	        				<td width="175"><label for="cf">C.F.:</label></td>
	        				<td width="175"><input type="textbox" name="cf"  size="20" id="cf"/></td>
	        				<td width="175"><label for="pi">P.I.:</label></td>
	        				<td width="175"><input type="textbox" name="pi" size="20" id="pi"/></td>
	        			</tr>
	        		</table>
	        		
				</div>
				<div class="box_dati">
				<div class="top">
						<p><span>Recapiti</span></p>
	            		
	        		</div>
					
	        		<table>
	        			<tr>
	        				<td width="175"><label for="indirizzo">Indirizzo:</label></td>
	        				<td width="175"><input type="textbox" name="indirizzo" size="20" /></td>
	        				<td width="175"><label for="citta">Citt&agrave;:</label></td>
	        				<td width="175"><input type="textbox" name="citta" size="20" /></td>
	        			</tr>
	        			<tr>
	        				<td width="175"><label for="cap">CAP:</label></td>
	        				<td width="175"><input type="textbox" name="cap" size="20" /></td>
	        				<td width="175"><label for="provincia">Provincia:</label></td>
	        				<td width="175"><input type="textbox" name="provincia" size="20" /></td>
	        			</tr>
	        			<tr>
	        				<td width="175"><label for="stato">Stato:</label></td>
	        				<td width="175"><input type="textbox" name="stato" size="20" /></td>
	        				<td width="175"><label for="telefono">Telefono:</label></td>
	        				<td width="175"><input type="textbox" name="telefono" size="20" /></td>
	        			</tr>
	        		</table>
				</div>	
				<div class="box_dati">
				<div class="top">
						<p><span>Dati di accesso</span></p>
	            		
	        		</div>
					
	        		<table>
	        			<tr>
	        				<td width="175"><label for="email">Email:</label></td>
	        				<td width="175"><input type="email" name="email" size="20" /></td>
	        				<td width="175"></td>
	        				<td width="175"></td>
	        			</tr>
	        			<tr>
	        				<td width="175"><label for="password">Password:</label></td>
	        				<td width="175"><input type="password" name="password" size="20" id="password"/></td>
	        				<td width="175"><label for="conferma_password">Conferma Password:</label></td>
	        				<td width="175"><input type="password" name="conferma_password" size="20" id="conferma_password" /></td>
	        			</tr>
	        			<tr>
	        				<td colspan="4">
	        					<%if(request.getParameter("error")!=null && request.getParameter("error").equals("psw_diff")){ %><span  style="color:red;" id="error_password">Le password non coincidono</span><%} %>
	        					<span class="hidden" style="color:red;" id="error_password">Le password non coincidono</span>
	        				</td>
	        				
	        			</tr>
	        		</table>
				</div>	
				
			</div>
			<input id="perform-get-button" type="submit" value="Invia" class="button">
					
		</form>
	</td>
	<!-- fine corpo principale -->

</tr>

<tr>
	<td height="20">&nbsp;</td>
</tr>
<tr>
	<td align="center"><img
			src="images/footer.gif" alt="" width="920" height="4" border="0"></td>
</tr>
<tr>
	<%@ include file="/html/footer.html"%>
</tr>
</table>
</body>
</html>
